Repository navigation
feat(spec, ui): a master_detail child is a tab by default; a field group puts it in the overview and the form - #35921
Conversation
…oup puts it in the overview and the form A master_detail FK that declares no relatedList is now a tab of the record page with its count. A field group of the PARENT naming the child (fieldGroups[].relatedList) draws its table at the group's place in the overview, keeps its tab, inlines it in the create and edit forms, and makes the record page's Edit save fields and rows together. inlineEdit only picks the form factor (maintainer ruling B). relatedList: 'primary' is unchanged. Spec predicate, migration entry, ADR-0035 amendment, os lint rules, Studio readers, and the showcase invoice / expense report and CRM opportunity gain a lines field group. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgTZaMP6gPV6DVStBSU
📓 Docs Drift CheckThis PR changes 3 package(s): 18 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 5 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 174 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 80915cef420d9670069e91ca3ef650b38e0fde79 && git checkout 80915cef420d9670069e91ca3ef650b38e0fde79
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 9a8bb83d4c7698bc87ac955a272f27d1d5802fda 863793e9a9501507274c9756672e97667cb32eea && git checkout -B drift-repro 9a8bb83d4c7698bc87ac955a272f27d1d5802fda && git merge --no-ff 863793e9a9501507274c9756672e97667cb32eea
node scripts/docs-audit/affected-docs.mjs --json 9a8bb83d4c7698bc87ac955a272f27d1d5802fda
|
… where a parent field group names it The field reference tables, the master_detail section, the embedded-types callout and the common-patterns order example said inlineEdit alone puts the child rows on the parent's form. They now say the parent's field group decides and inlineEdit picks the form factor, and the order example names its lines in a group. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgTZaMP6gPV6DVStBSU
|
repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP 维护者速读
席位核对 — REWORK (L1-c) · repo:objectstack#1 · head
|
inlineEdit help text after #35889
#35927
…; say where 'primary' joins the form L1 rework on the S1 change. Only a plain master_detail list that a parent field group makes a body table keeps its tab (deriveRelatedLists sets keepsTab, the page synthesizer reads it, and no longer re-derives group placement); a relatedList: 'primary' table stays body-only whether or not a group positions it. The changeset and the migration entry now say that a 'primary' child a group names joins the parent's forms (ruling B). The group help text no longer says the record page does not draw the placement, and two CRM example comments name the lines group. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgTZaMP6gPV6DVStBSU
os migrate meta prints the semantic entry's text, and its guidance pin refuses a tracker id there. The card references move to the file's header comment; the printed reason says what changed instead. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgTZaMP6gPV6DVStBSU
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Posted 2026-11-20T20:30Z. The brief handed to the isolated contract reviewer at Contract review brief — PR #35921 @
|
|
repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP 维护者速读
席位核对 — delta ACCEPT (L1-c) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: Reviewed at 2026-11-20T20:35Z from card #35889 (body and all six comments), PR #35921 (body, file list, net diff against merge-base ① Derived judgments
② Semver levelClause-②: yes (widening). Correct: the diff adds three exports and one optional parameter to ③ Boundary flags
④ Design judgment
S1 (should-fix) — S2 (should-fix) — position in the entry form is claimed but not delivered on this head. S3 (should-fix) — Nits (no effect on the contract; leave or fold into S1/S2's edit of the same files):
ADR-0035 as a whole, against its first consumer: the status-line amendment and the third note are add-only, dated, quote the maintainer's words from the card, and describe what No must-fix. S1, S2 and S3 are open on this head and earn a delta review of their fix. Implemented-by: VERDICT: PASS |
…tab-by-default change
- os lint relationship/line-items-inline-edit prints a field group that
parses (it carries the required label) and asks only a FK a group may
place, not one declaring relatedList: true / false.
- The migration entry, the ADR-0035 note and the changeset give the working
route for an inlineEdit child that is not a plain master_detail
('primary' on its FK as well as the group), and say a form view that
declares its own subforms still inlines them.
- The relatedList describes and JSDoc say the entry form inlines a placed
table below the record's fields for now, not at the group's position.
- Stale "inlineEdit is the write side" wording updated, and the field
inspector's dead body-table branch removed.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTZaMP6gPV6DVStBSU
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Posted 2026-11-20T20:47Z. The DELTA brief handed to the same isolated contract reviewer at Contract review brief — PR #35921 @
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: Delta review at 2026-11-20T20:48Z of ① Derived judgments
② Semver levelClause-②: yes (widening). Unchanged and still correct: the delta adds or removes no export and changes no accepted value. ③ Boundary flags
④ Design judgmentS1: closed. Checked against S2: closed. S3: closed. The printed fix is N1: done (the I looked for a new problem in the changed lines and found none: the lint narrowing cannot hide a case the old rule rightly reported (for the two skipped cases the prescription was itself refused), and the inspector's default mode was already No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP 维护者速读
席位核对 — delta ACCEPT (L1-c) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Tier H approval request · 2026-11-20T21:22Z · @os-zhuang, this PR is ready for your Tier H review on head What it does: on the record page, a
The seat lands after your approval (ruling C, 2026-09-13). |
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Posted 2026-11-21T04:05Z. The DELTA brief for a merge-only round on PR #35921 (from the delta PASS 7050264709 on Contract review brief — PR #35921 @
|
|
repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP 维护者速读
席位核对 — merge delta ACCEPT (L1-c) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Posted 2026-11-21T04:09Z. Contract reviewServed-tier: Merge-only delta of record 7050264709 (PASS on ① Derived judgments
② Semver levelClause-②: yes (widening). Unchanged and still correct: three added exports and one optional parameter on ③ Boundary flags
④ Design judgment
The four implementing files the merge touched on both sides ( The other S1: closed N1, N2 and N3 stand as record 7050264709 left them (N1's remaining words and N3 accepted as nits, N2 done). Nothing new to grade. No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Seat landing after Tier H approval · 2026-11-21T04:39Z · os-zhuang APPROVED this PR at 2026-11-21T03:07:46Z on
The seat removes |
…ts field group (#36009) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuFchBCV6Umg5wxjoKhT7QkV)_ repo:objectstack#1 · os-sales · session_01L6bhgXUMw7b8gUmNsyoXHR Fixes #35889 Slice S2 of #35889 (S1 = #35921, merged as f3c9d42). Claim 7057842463. Area b1-R2. ## 维护者速读 - **用户看到的变化**:主对象的字段分组指定了主从子表(例如报销单的「Expense Lines」分组排在「Report」和「Totals」之间)时,新建和编辑表单里这张明细表现在就出现在这个分组的位置,和记录页一致;以前(S1)它总是排在所有字段的最下面。 - **分组导航条**:表单顶部按分组跳转的导航条,现在也在明细表这一站停(例如 Report / Expense Lines / Totals)。 - **分页签表单**:明细表在分组的位置单独成一个页签,页签名用分组的名字。**向导表单**:主从向导本来就按简单表单画,跟简单表单一样放到分组位置。 - **不变的**:没有分组指定的子表(表单视图自己写的 subforms)、以及 sections 跟字段分组对不上的表单,明细表照旧在最下面;主记录和明细一次保存、合计在表单底部、展开一行的编辑框跟着明细表走。不改任何元数据写法。 - 本 PR 收尾 #35889(`Fixes`)。 ## What changes A master-detail collection that a field group of the parent places (`fieldGroups[].relatedList`) is now drawn at that group in the parent's create and edit forms, where the record page draws it, instead of below every field of the record. - **Form slots** (`ui/packages/plugin-form/src/formSlots.ts`, new). `MasterDetailForm` hands its header `ObjectForm` a runtime-only list of its collections (package-local hand-off type, not on the `ObjectFormSchema` authoring face). `placeFormSlots` lays them out among the form's sections by the record page's rule (`bodyTablePlacement`): after the sections of the groups declared before the placing group, before those declared after it; a section that names no declared group (the ungrouped bucket) counts as after every group. A layout none of whose sections names a declared group places nothing. - **Simple form** (`ObjectForm.tsx`): each placed collection becomes a `form-slot` row in the one field list, between the sections. The form renderer (`ui/packages/components/src/renderers/form/form.tsx`) draws that row as an empty full-width element; no new export. - **The slot's controls are not the header form's**: the slot element sits inside the header's `<form>`, so `FormSlotPlacement` wraps the portaled collection in a form of its own (`noValidate`, a disabled hidden default button, submit prevented). The header's `requestSubmit()` then validates only its own fields (a line cell's bad input never blocks Save with a browser bubble), a line button without a `type` (the shared `Button` sets none) never submits the header, and Enter in a line cell submits nothing: the lines behave as they did below the form, owned by no header form. The renderer's reveal of an errored field (`fieldWrapper`) skips what a host drew into this form's slot rows, while an editor inside a slot still finds its own fields. - **Section bar**: a slot row carries its group's (translated) label, once per group, and the form renderer reports a labelled slot to the host's section navigation (`FormSectionNavContext`, #34605) between the headings around it, with the slot element as its anchor. An unlabelled slot is no stop. - **Tabbed form** (`TabbedForm.tsx`): a placed collection is a tab of its own at its group's position, labelled with the group's (translated) label. A master-detail wizard is already drawn as the simple form (`ObjectForm`'s master-detail route), so it places the same way. - **The collection is drawn by `MasterDetailForm`** into the slot through a portal (`FormSlotPlacement`, a `FormSlotStore` per form in a ref), so the lines stay out of the header's React tree: a header keystroke still never re-renders them and they never re-render the header. The header reports which collections its drawn layout claims (never while it is loading), so a collection no layout claims stays in its old place below the fields, and a remounting header (after a create) does not make the lines jump below and back. An expanded row's editor opens in the same slot, beside its collection. The header scrape for the lines' `parent.*` rules skips the slot's inputs. The document totals stay at the foot of the form. - **Texts S1 left** ("below the record's fields until the form places it at the group"): `ObjectFieldGroupSchema.relatedList` describe and jsdoc, `FieldSchema.relatedList` jsdoc, the `related-list-body-table.ts` header and its describe pin, the regenerated `content/docs/references/data/object.mdx`, the acceptance line of migration entry `semantic/18.master-detail-related-list-tab-by-default`, and S1's changeset line. **ADR-0035**: one add-only note after the third note; S1's sentences are left as written (the note says which one it supersedes). - `object.form.ts`'s group help ("The parent's create and edit forms inline the table too …") makes no position claim, so it is unchanged and its bundles are not regenerated. ## Why Card #35889, acceptance line 2: 「同一个对象,加一个指向这张子表的分组并排在第二位:记录页字段区的第二个分组位置出现这张表;新建、编辑表单同一位置出现;页签里仍有它。」 S1 delivered the record page half; this delivers the form half, as agreed in the split. ## Verification Head 97afed5: main merged in after #35984 landed (three keep-both hunks in `MasterDetailForm.tsx`, nothing else). The reviews below were read at 84dc199. On the merged tree, `tsc` in plugin-form is clean and the plugin-form + form-renderer suites pass (332 files, 3354 passed / 18 skipped). - **Form ownership (L1-c should-fix)**: a DOM pin asserts every control in the slot has a form other than the header's and clicking each line button fires no header `submit` (red without the wrapper); `form-invalid-scroll.test.tsx` pins that the reveal of an errored field lands on the form's own field, not a same-named field drawn into a slot (red without the filter). Real browser (`owner-check.cjs`): 12 slot controls, 0 owned by the header; Enter in a cell and Add line make no header submit and no write; with letters in a line's Amount cell (`validity.badInput`), Create reaches the app's own check ("Amount is required", bad cells marked) with no browser bubble. Suites after the fix: 331 files, 3343 passed / 18 skipped; `tsc` clean in plugin-form and components. - **New pins (13)**: `formSlots.test.ts` (placement order, a group declared last, entry reading, nothing placed, slot store), `MasterDetailForm.groupPlacement-35889.test.tsx` (simple form between the groups around its group, an unplaced collection below the form, placed last, edit mode with loaded lines at the group and drawn once, save batch, tabbed form tab order with the collection in its tab), and one case in `form-section-nav-34605.test.tsx` (a labelled slot is a section-bar stop between the headings, an unlabelled one is not). - **Ablation**: dropping the placement (the header claims nothing) turns 4 of the DOM pins red; dropping the slot from the section-bar report turns the nav pin red. Restored, green. - **Suites**: `vitest run packages/plugin-form packages/components/src/renderers/form` 331 files, 3335 passed / 18 skipped; after merging main, `FormSectionNav` (#35988) + `ModalForm` + the new pins 8 files / 63 passed. `packages/spec` tests green; `check:generated` clean after the object.mdx regeneration. - **Static**: `tsc --noEmit` clean in plugin-form and components; eslint on the changed files 0 errors. - **Browser** (real Console on the showcase expense report, New form; light and dark at 1280 px, light at 375 px): - default form: Report section, then the Expense Lines grid inside the form; - with a temporary, uncommitted Totals field: Report, Expense Lines, Totals in that order, and the section bar reads Report / Expense Lines / Totals; - temporary tabbed form view: tabs Report / Expense Lines / Totals, the grid in the Expense Lines tab; - temporary wizard form view: drawn as the simple form, same order. All temporary edits were reverted before commit. Clause-②: no Metadata-protocol: none ## DELIBERATE CORRECTION (pending release note) `Check Changeset` is red by design: this PR rewrites one line of a pending release note it did not add, because the behaviour that line describes is the behaviour this PR changes. Restoring it would republish a false sentence. - Note: `.changeset/35889-master-detail-tab-by-default.md` (S1, #35921, unreleased). - Before: "In the entry form a placed table still sits below the record's fields, where `inlineEdit` tables sit today. Moving it to its group's place in the form is a follow-up." - After: "In the entry form a placed table sits at its group's place too: between the sections of the groups around it, or in a tab of its own (labelled with the group) in a tabbed form. A form whose sections name no field group keeps it below the record's fields." No other line of that note changes. The seat confirms this through its same-head contract-review record (landing-operations.md). ## Follow-ups (not in this PR) - `bodyTablePlacement` (plugin-detail) and `placeFormSlots` (plugin-form) now spell the same ordering rule twice; a shared pure helper would need a new export (spec or a shared ui package), so it is left as a candidate card rather than widening this PR. - A form section that references the placing group itself (`sections: [{ group: 'lines' }]`) still resolves to nothing (the group holds no fields); unchanged here. - After a jump, the section bar's brief highlight (`data-section-jumped`, #35988) styles heading rows only, so a jump to the table scrolls to it without the flash. - Neighbours: #35984 also edits `MasterDetailForm.tsx` (textual conflict, whichever lands second merges); #35923 edits `docs/adr/0035`. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes. - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgXUMw7b8gUmNsyoXHR <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgXUMw7b8gUmNsyoXHR --> --------- Co-authored-by: Claude <noreply@anthropic.com>
… tabs by object name and per-entry title and columns (objectstack-ai#35923) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4Uu8asiBATVNp4pogcic92dHU)_ repo:objectstack#1 · os-sales · session_01L6bhgTgsPwrw3VbvRRcqth Fixes objectstack-ai#35897 Fixes objectstack-ai#35899 Clause-②: yes (widening) Metadata-protocol: semantic Skills-docs: follow-up objectstack-ai#35902 (skills/objectstack-data/rules/relationships.md, skills/objectstack-ui/rules/record-page.md) ## 维护者速读 - 对象声明了 `relatedLists`,详情页的标签页就只显示列出的相关列表,按列出的顺序;没列的不再显示。没声明(或为空)时完全不变。 - 三个内置标签用对象名放置:`sys_attachment`(附件)、`sys_approval_request`(审批)、`sys_activity`(活动流);附件不列就不显示,审批和活动流不列时仍排在末尾。 - 每一项可写 `{ list, label, columns }` 给该列表自己的标题和列;列名不是子对象字段会被 `os validate`、`os build` 和元数据写入口拒绝。 - 字段分组放进概览的主从明细表(objectstack-ai#35889):没声明 `relatedLists` 时既在概览里、也保留页签;声明了但没列它,就只在概览里,不出页签(席位裁定 7048340194)。 - Studio 对象设置里可以排页签、加内置标签、给每一项改标题和列;保存时保留对象写法和内置名。对象没开文件时,附件不出现在可选项里,已列的附件会提示不会显示。 - 元数据管理里的通用对象表单也能正确显示和编辑这张页签表了(之前遇到带标题和列的一项会出错);条目的列可以写 `account.industry` 这种跨关系的写法,和外键上的写法一致。 - 其他包加进来的子表也一样:父对象声明了 `relatedLists` 却没列它,就不显示页签;让扩展包自己放置列表的做法在 objectstack-ai#35901。 - 风险:已经声明了部分 `relatedLists` 的应用,没列的标签会消失(仓库内无此类对象;已部署的元数据未测量)。 ## What changes An object's declared `relatedLists` becomes its record page's tab list (epic objectstack-ai#35896): ```ts relatedLists: [ { list: 'quote_line', label: 'Line items', columns: ['product', 'quantity', 'unit_price', 'amount'] }, 'task', 'sys_attachment', 'sys_approval_request', 'sys_activity', ], ``` - **spec** (`packages/spec/src/data/object.zod.ts`, new `related-list-entry.ts`): an entry is the bare name or `{ list, label?, columns? }` (strict, with aliases and guidance). The three built-in tabs are named by object: `sys_attachment`, `sys_approval_request`, `sys_activity`. A built-in is written only as its bare name; the object form naming one is refused at parse (a regex, so the published JSON schema keeps the refinement). `defineStack`'s name check skips built-ins. The shared helpers `RECORD_PAGE_BUILTIN_TABS`, `isRecordPageBuiltinTab`, `relatedListEntryName` and `RELATED_LIST_BUILTIN_PART_OF` are the one reading of an entry's name for every reader. - **lint** (`validate-related-list-refs`): new `related-list-column-unknown` (error: a column that is no field of the child, registry-injected columns included), `related-list-attachments-off` (warning: `sys_attachment` on an object without `enable.files`) and `related-list-stream-part` (warning: `sys_comment` / `sys_audit_log` are parts of the stream; prescribes `sys_activity`). The same rule runs at `os validate`, `os build` and the metadata write door. - **record page** (objectui): - `deriveRelatedLists`: on a declared non-empty `relatedLists`, an unlisted side list shows no tab. Body tables a field group places are kept, and `relatedList: false` on the FK still hides a list. An entry's `label` / `columns` win over the FK's `relatedListTitle` / `relatedListColumns`. - `buildDefaultPageSchema` (`arrangeDeclaredTabs`): tabs follow the declared order. An unlisted attachments tab is dropped. Unlisted approvals follow the listed tabs. An unlisted stream closes the strip. The overview stays first. - `recordPageColumns`: the related column keeps that one order. - With objectstack-ai#35921 merged: a `master_detail` table that a field group places in the overview keeps its tab only while `relatedLists` is undeclared or lists it. A declared `relatedLists` that leaves it out shows it in the overview with no tab (seat ruling 7048340194 on objectstack-ai#35897). objectstack-ai#35921's ADR-0035 note and `semantic/18` acceptance text are qualified to say so. objectstack-ai#35921's changeset stays as main has it; this PR's own changeset narrows it in one sentence (0215faf). - **Studio** (`RelatedListsEditor`, `relatedListVocabulary.acceptTabListEntries`): the object settings panel edits `relatedLists` as the tab list. Object entries and built-in names survive every move, removal and add. The add picker offers the built-ins by name (attachments only when `enable.files` is on), then the unlisted relationships. A relationship row edits its own title and columns; clearing both writes the bare name again. A listed attachments tab on an object without files shows a notice. The preview draws the tabs in order, built-ins included. New strings in `@object-ui/i18n` (en, zh). - **FLS mask** (`object-schema-fls-references.ts`): `relatedLists` entries stay unmasked like `lookupColumns`: the columns are the child's fields, the label is author text, and the built-ins are object names. A pin test covers an entry whose column shares a denied field's name. - **migration**: ADR-0087 semantic entry `related-lists-declared-is-tab-list`. No D2 conversion, because which unlisted lists an author still wants is recorded nowhere. - **ADR notes**: - ADR-0085 gets a dated note: §2's hide/re-arrange guard yields for `relatedLists` only, per the maintainer's ruling. - ADR-0035 gets a dated amendment. - Both were drafted at the opus tier under the quota exemption. - Generated references, the API surface, liveness children (`list`, `label`, `columns`) and the strictness ledger counts are regenerated. **Tier H**: this PR touches `docs/adr/**`. ## Why The maintainer ruled that the record page's tabs are declared on the parent object in one place: removing an entry removes its tab, `relatedLists` is that list, and the three built-in tabs are named by their objects. Before this change, a declared `relatedLists` only ordered the lists: every unlisted list still followed, and the built-ins always closed the strip in a fixed order. ## Tests - spec: `stack-related-lists-order.test.ts` (object entries, built-ins, the parse refusal, `defineStack`); new `related-list-entry.test.ts`. - lint: `validate-related-list-refs.test.ts` (built-ins, both warnings, unknown and injected columns); `rule-explanations` covers the three new ids. - metadata-core: `object-schema-fls-references.test.ts` (objectstack-ai#35899 entry pin). - Studio: new `ObjectSettingsPanel.relatedListsTabList-35897.test.tsx` (5 tests); `ObjectSettingsPanel.relatedListsOrder-27054.test.tsx` expects the built-in add options. - ui: `buildDefaultPageSchema.test.ts`, new describe `declared relatedLists arranges the tabs (objectstack#35897)`; `deriveRelatedLists.relatedListsOrder-27069.test.ts`. Three tests that pinned the old "unlisted lists follow" meaning now pin the new one: two in the 27069 file, the 27241 case in `RecordDetailView.harness.test.tsx` (with a new all-listed control), and the page-order expectations in `ObjectSettingsPanel.relatedListsOrder-27054.test.tsx`. The 27069 file also pins the ruling: a group-placed `master_detail` table keeps its tab when `relatedLists` is undeclared or lists it, and loses only the tab when unlisted. ## Acceptance notes On the record page of each object that declares `relatedLists`, the tabs after the overview are the listed related lists and built-in tabs, in the listed order. Then come approvals, if unlisted and the record has requests, and the activity stream last. An object that declares no `relatedLists` shows the same tabs as before. In-repo census: no example, platform object, dogfood fixture or HotCRM object declares `relatedLists` today. ## Verification On `462477f8` (the fixes above): `@objectstack/lint` 222 files / 9,369 tests passed; `@objectstack/platform-objects` 125 files / 2,126 tests passed; `@objectstack/spec` `src/data`, `src/migrations`, `src/stack` 230 files / 7,961 tests passed; `check:generated --fix` regenerated `content/docs/references/**` and is clean; `check-i18n-bundles --write` clean; ui vitest on all of `app-shell/src/views/metadata-admin` and `ObjectSettingsPanel*`: 772 files, two failures in the first run, both resolved (the 9931 registry table, now carrying the new key, 40 passed; `AddWidgetPicker.oneRegistry-26745` passes alone, 7 passed, and the diff does not touch it). On the merged head 3434287 (main 6c7c6db merged into 473c7ff; conflicts listed below; 0215faf then touches only `.changeset/`): `@objectstack/spec` test 961 files / 29,439 tests passed and `check:generated` clean after `--fix` (it regenerated `content/docs/references/**` and the liveness counts); `@objectstack/lint` 222 files / 9,363 tests passed; `@objectstack/metadata-core` 1,048 tests passed; ui vitest (from `ui/`) on `app-shell` deriveRelatedLists, `RecordDetailView.harness`, `ObjectSettingsPanel*`, `plugin-detail` synth and all of `@object-ui/i18n`: 133 files / 2,389 tests passed. The whole app-shell + plugin-detail suites ran past the local time limit and are left to CI. Main merge conflicts and how they were resolved: `docs/adr/0035` keeps both notes (this PR's 2026-11-20 amendment, then main's 2026-11-21 second-slice form note); `semantic/18` acceptance text carries both qualifiers (the declared-`relatedLists` tab rule from this PR, the same-place/tabbed-form wording from objectstack-ai#36009); Studio `en`/`zh` keep this PR's tab-list wording and drop `highlightPreview` as objectstack-ai#36020 did; `content/docs/references/{api/metadata,data/object,system/migration}.mdx` and `liveness/state-counts/object.md` were regenerated, not hand-merged. On 473c7ff, before this merge: `@objectstack/spec` test 2355 files passed, `check:test-typecheck` and `check:generated` clean; `@objectstack/lint` 868 files passed; `@objectstack/metadata-core` 222 files passed; `@object-ui/plugin-detail` 105 files passed; `@object-ui/app-shell` 394 files passed; `@object-ui/i18n` 27 files passed. Earlier runs: - `pnpm --filter @objectstack/spec test` on the touched files; `check:generated`; `check:liveness`. - `pnpm --filter @objectstack/lint test` (validate-related-list-refs, runtime-gate, rule-explanations). - ui vitest (from `ui/`) on the touched plugin-detail / app-shell files: 7 files, 227 passed. A wide app-shell + plugin-detail run had no other failures. - Typecheck: spec, lint, plugin-detail and app-shell `type-check`. - `dispatch-gates.mjs --commands` derived list (128 commands) run locally: 126 green (two of them after building their inputs). Two are prerequisite refusals that measure nothing here, left to CI: `check-plugin-teardown-shape --self-test` (needs a full clone), `check:dual-build-cjs-loads` (needs a whole-repo build). An ADR-0122 alias finding was fixed in da074fd. ## Fable L2 fixes (record 7071342837, at `0215fafa`) - **M1** (`f5b256d4`): the object form's `relatedLists` row (`packages/spec/src/data/object.form.ts`) now names a new `related-list-entries` widget (`ui/packages/app-shell/src/views/metadata-admin/widgets.tsx`, labelling `control`). It renders a bare name and an object entry alike (the entry's title and columns beside its name), keeps every entry's stored form on add and remove, refuses a second entry for a name an object entry already places, and removes the key with the last entry. The help text states the tab-list meaning, hand-written in all ten translated locales (`platform-objects` metadata-forms bundles), and the zh label is 记录页页签 in both the bundle and `metadata-form-zh-cn.ts`. Pinned by `RelatedListEntriesWidget-35923.test.tsx` (the published row names the widget; an object entry renders; remove/add keep it); the three widget-registry tests (`widgetLabelling`, `controlWidgetGridNaming-9889`, `controlWidgetFailureArmNaming-9931`) carry the new key. - **S1** (`f5b256d4`): `validate-related-list-refs` walks a dotted entry column through `resolveFieldPath` from the child, as `validate-object-field-refs` walks `relatedListColumns`; an unjudgeable path stays unjudged. Test: `lead_id.name` passes, `lead_id.nope` and `nope_id.name` are `related-list-column-unknown`. The spec `describe` and the rule header say so. - **S2** (`f5b256d4`): the `relatedLists` `describe` and jsdoc, the ADR-0035 and ADR-0085 notes and the `related-lists-declared-is-tab-list` migration entry state that a child list another package adds is hidden too until the parent names it (accepted at build only when that package is in the parent's stack), and that an extension package placing its own list is objectstack-ai#35901. No lint hint added: the case has no stack-side signal to warn on. - `db548f41`: the four widget tests load `@objectstack/formula` and `@objectstack/lint` at module top (`check-test-source-alias`: `widgets.tsx` reaches both through dynamic imports). - Changeset (`462477f8`): adds `@objectstack/platform-objects` (patch, translations) and the three points above. - Nits, under the small-things rule: **N1** left (one shape published as a hand-written type beside the inferred one; deriving one from the other needs the import cycle broken, a follow-up). **N2** left for the approver as the accepted deviation the record names (names only, `lookupColumns` precedent). **N3** left (first entry naming a list wins; a lint advisory is a follow-up). **N4** left (no authorable parent has an inbound FK from `sys_comment`). ## Human Minimum Each item is one rule from [CONTRIBUTING.md › Human Minimum](https://github.com/objectstack-ai/objectstack/blob/main/CONTRIBUTING.md#human-minimum), which links the AGENTS.md text that states it. - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (The new `related-list-entry.ts` holds only the name constants and two pure name readers, like `related-list-body-table.ts`.) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes. (ESLint on every changed file: 0 errors.) - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. (Two cards folded by the dispatch order, one `Fixes` line each.) - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. (Except the maintainer's 维护者速读 block.) - [x] The *Before Submitting* list in CONTRIBUTING.md is done. Tier H (`docs/adr/**`): the ADR-0085 and ADR-0035 notes need the approver's review. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgTgsPwrw3VbvRRcqth <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgTgsPwrw3VbvRRcqth --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…st, a group's own fields and the pinned details column (objectstack-ai#35902, objectstack-ai#35942) (objectstack-ai#36222) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuVUBehQPXWLrrSjKtHkXE93)_ repo:objectstack#1 · os-sales · session_01L6bhgWCfqdb19A74hDYnKp Part of objectstack-ai#35902 Fixes objectstack-ai#35942 Part of objectstack-ai#36188 Clause-②: no Metadata-protocol: none Skills-docs: updated here Security-touching: no Area: b1-RS. Claims: objectstack-ai#35902 7072867188 (slice 2; it redoes slice 1, whose branch never reached GitHub), objectstack-ai#35942 7072873584 (folded), objectstack-ai#36188 7072882981 (this PR is its skills half; the seven platform-checklist JSON items are PR B, `Fixes objectstack-ai#36188`, after this merges, because a checklist JSON beside skills paths takes a PR off the low-risk skills arm). ## 维护者速读 - AI 按技能搭建记录页时,现在知道页签由父对象的 `relatedLists` 决定:没写就照旧全部显示;写了就只显示列出的,按列的顺序;附件、审批、动态用对象名 `sys_attachment`、`sys_approval_request`、`sys_activity` 列进来;一项可写 `{ list, label, columns }` 给这张子表自己的标题和列。 - 以前技能教「把任务排第一」写 `relatedLists: ['task']`,按现在的规则这会把其他页签全藏掉。技能和评测改成「列出要保留的全部页签,任务排第一」。 - 主从子表默认是页签(objectstack-ai#35921 之后),技能不再说「默认是正文表」;父对象分组指向子表才进字段区,而且只在使用者明确要求时才写。 - 第 1 片(分组用 `fields` 列成员、不再有阶段条和关键字段条、阶段在名字旁的状态标签里)当时没推上来,这次一起补上,关掉 objectstack-ai#35942。 - 右栏、⊟ 开关的文字删掉,改成今天的布局:宽的整页把字段钉在左栏,其余页签在右边。 - 新增三条评测:「去掉附件页签」「税号排在行业后面」「报价单的明细放在金额上面」;指南文档记录页一节加了父单的完整报价单例子。 - 代价:只改技能文字、评测、指南和一个 changeset,不动运行时;四个技能文件都没超上限,上限一个没动(同文件删过期文字来付)。 ## What changes **`skills/objectstack-ui/rules/record-page.md`** (3954 → 3951 B, 988 / 991 tokens) - Step 1: the stage is the status tag beside the title, whose menu moves it; no stage bar or key-field strip (`highlightFields` feed hover cards, pickers, related-list columns) (objectstack-ai#35938, objectstack-ai#35942). `fieldGroups` are the Details sections, each listing its members in `fields`; absent, the fields whose `group` names it (objectstack-ai#35925). Layout: a full page fitting 320 px of details beside 400 px of tabs pins the details left, the other tabs right; unless the details hold a child table or there is no other tab; otherwise one column, Details first (objectstack-ai#36136, `recordPagePinsDetails`). The old 760 / 1120 px two- and three-column text, the right column and the Overview tab are gone. - Step 2 is now "The parent's `relatedLists` is the tab list" (objectstack-ai#35923): without it nothing changes; declared, only the named lists show, in order (unlisted approvals and the stream still follow); the built-ins by object name; "tasks first" lists every tab to keep; leaving out `'sys_attachment'` drops attachments; `{ list, label, columns }`; a built-in is a bare name; a child list another package adds is hidden by a `relatedLists` that does not name it. Kept from the old step 2: `relatedList: false`, `relatedListFilter`, the default list view `sort`. A parent group `{ key, label, relatedList: 'quote_line' }` (no `fields`) places a child table among the fields, written only when asked (objectstack-ai#35902's open question); its tab stays unless a declared `relatedLists` omits it (objectstack-ai#35889's note, seat reading 7048340194, as shipped by objectstack-ai#35923). The old "`'primary'` default for a master_detail" and "`relatedLists: ['task']`, no page file" are removed (objectstack-ai#35921, objectstack-ai#35923). - Step 6: the ⊟ right-column switch is removed (objectstack-ai#36188); the details column's dragged width joins the reader's choices. - Paid for in the same file: step 1's retired layout text, step 3's "the synthesizer fills the rest", step 5's removal release ("removed in @objectstack/spec 18.3.0 (ADR-0087 D2)": the refusal carries its fix), step 6's "(drawer or full page, for a drawer-mode object)" and the deprecated `width` / `drawerWidth` aside, step 1's "the other tabs right", step 4's "a filtered split (Open vs Closed)" and step 5's "(`new_window`, `none` are the other members)" and "Field count never decides". - The `os:check` example is a quote (`sharingModel: 'private'`) with a group listing its `fields` and a `relatedLists` entry carrying its own label and columns. **`skills/objectstack-data/rules/relationships.md`** (16790 → 16812 B, 4203 / 4203), Detail-page related lists: every child is a tab by default, a `master_detail` child too; `false` hides; `'primary'` makes a body table with no tab; a parent group naming a `master_detail` child places its table there too (written only when asked), and its tab stays unless a declared `relatedLists` omits it; the parent's `relatedLists` is the tab list (pointing at objectstack-ui Record Page), with the built-ins and the entry form; an entry's `label` / `columns` win over `relatedListTitle` / `relatedListColumns`. Paid for by the old tri-state bullets, the "Suppress a noisy association" comment, and a shorter refusal aside ("bar a platform or sibling-artifact name", "one into a package is stored, placing nothing"). **`skills/objectstack-data/references/examples-objects.md`** (6894 → 6876 B), Field Groups: a group lists its members in `fields`; `Field.group` is the older spelling, still read; the two refusals named; the example lists members on the groups. **`skills/objectstack-ui/rules/navigation.md`** (10251 → 10219 B): "`fieldGroups` + `Field.group`" is "`fieldGroups`", twice. **Evals** (`skills/objectstack-ui/evals/record-page.json`, README; measured, not ratcheted): - Case 1 (tasks first) now expects the full tab list, `task` first, and refuses `relatedLists: ['task']` and a group naming the task list. Its old answer ("already a full-width body table") is wrong since objectstack-ai#35921. - Case 4: remove the attachments tab: the full list without `'sys_attachment'`. - Case 5: a Tax ID field after Industry in the group's own `fields`, with no `group` on the field. - Case 6: a quote's line items above its Amount section instead of a tab: a group `{ key: 'lines', label, relatedList: 'quote_line' }` between the two, and a `relatedLists` naming the tabs kept without `quote_line` (an undeclared parent keeps a group-placed table's tab). - `must_not_contain` tokens are code shapes (`relatedLists: ['task'],`, `'sys_attachment',`, `group: 'basic' }` …), so an answer that names the wrong shape in prose is not failed. - No case's `must_not_contain` token appears in its own reference answer; every `must_contain` token does (checked by script). **Guide (`content/docs/ui/pages.mdx`, Record pages)**: the synthesized default says every related list is a tab by default, the header's status tag carries the stage with no stage bar or strip, and an unplaced `'primary'` table sits after the field sections drawn open (it said "after the first field section"; `bodyTablePlacement` since objectstack-ai#35742). New subsection "Declaring the tabs and the field groups": `relatedLists` as the tab list with the built-ins and entries, a group's `fields`, a group placing a child table (its tab stays unless a declared `relatedLists` leaves it out), and epic objectstack-ai#35896's full quote example (`os:check`, with `sharingModel: 'private'`; a comment says `quote_line` is in both places on purpose, so it is drawn in the details and keeps a tab with its own columns). The layout paragraph gets its own heading, "How the page is laid out". "A one-word change on the relationship field" now reads "a declaration on the parent (a field group naming the list)". **Changeset** `.changeset/35902-skills-related-lists-tabs.md`: `'@objectstack/skills': patch`, both declaration lines. ## Small calls made in this thread - No ratchet ceiling moves: a `scripts/check-skills-token-ratchet.mjs` edit is outside the low-risk skills arm. All four files fit under their current ceilings. - The skill says "no package places its own list yet" rather than naming the follow-up card: the published catalog refuses internal ids (`check-doc-authoring`). - The Inline Editing section of `relationships.md`, `skills/objectstack-ui/rules/list-views.md:370` and `skills/objectstack-ui/SKILL.md:48` still teach that `inlineEdit: true` alone puts the child rows on the parent's form; since objectstack-ai#35921 a parent field group decides and `inlineEdit` only picks grid or form. Not in this PR (it is form entry, not the record page's tabs, and it spans three more files): follow-up for the seat to card. - `content/docs/ui/field-grouping-and-order.mdx` was not touched: the brief names the record-page section. ## Verification (readings against `main` 48c732c, head 7b3f52e) - Reviews on 4885e48: L1-c REWORK 7073387487 (two must-fixes, both in 7b3f52e); Fable rules L2 PASS 7073403529 (N1 narrowed in 7b3f52e, N2 closed by L1-c's fix 1, N3 = L1-c's fix 2, N4 left). - `node scripts/check-skills-token-ratchet.mjs`: 60 authored files within ceilings. - `pnpm check:skill-links` (270 links, 139 fragments), `check:skill-identifier-liveness` (549 citations), `check:doc-authoring` (75 published skill files with no internal ids; 516 doc files clean): green. - `pnpm --filter @objectstack/spec check:skill-examples`: 348 marked examples type-check across 3 surfaces (EXIT 0), the new record-page, examples-objects and pages.mdx blocks among them. - `pnpm --filter @objectstack/lint run check:doc-security-posture`: 41 `ObjectSchema.create` examples carry an `os validate`-clean posture (the first head missed `sharingModel` on both quote examples; CI caught it, fixed in 4885e48). - The examples through `defineStack` (cross-reference validation): the guide's quote with `quote_line`, `task` and `account` accepted; control: the same quote without `quote_line` is refused (`relatedLists[0] 'quote_line' matches no inbound relationship of 'quote'`); the rule's short quote with a `quote_line` child accepted; the data skill's account accepted. - `node scripts/pm/check-governed-merges.mjs --branch claude/project-thread-emjngv`: skills/** ×6 (all `.md` or `evals/*.json`), plus a changeset and one `content/docs` `.mdx`, 296 changed lines; the arm's `--pr` reading follows on the PR. ## Follow-ups - PR B: the seven checklist items (`docs/qa/platform-checklist/areas/records-forms.json` ×6, `attachments-storage.json` ×1), `Fixes objectstack-ai#36188`, in a new session after this merges. - objectstack-ai#35902 stays open for the objectstack-ai#35901 batch (extension placement), the repo example and HotCRM. - `inlineEdit` skills text (above). ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (not touched) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes. (skills and doc gates above) - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: n/a. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. (the 维护者速读 block is the maintainer's Chinese summary) 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgWCfqdb19A74hDYnKp <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgWCfqdb19A74hDYnKp --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…merged (objectstack-ai#36273) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XC63go34oEMBFaBgqpoDC8N)_ Fixes objectstack-ai#35701 Fixes objectstack-ai#36211 Clause-②: no Metadata-protocol: semantic Skills-docs: none — no skill teaches either entry's text; `skills/objectstack-ui/rules/record-page.md` §4 already says a `kind: 'full'` page is drawn on the desktop full page only, and no skill names the field-group refusal's shapes ## 维护者速读 - 用户能看到什么变化:作者运行升级命令时看到的两条升级说明改成与现行规则一致;界面和检查都不变。 - 为什么做:主从子表与字段分组的规则、以及完整记录页只在桌面完整页按原样显示的规则都已合入,两条已发布的升级说明还写着旧说法。 - 出错会怎样:只改说明文字,不改任何检查、拒绝或数据,可直接撤回。 - 要你做什么:无。第三张卡(objectstack-ai#35846,检查清单里主从子表那一项)不在本 PR:它已被 objectstack-ai#36188 的 PR objectstack-ai#36284 取代并关闭,那条清单项在那边按新规则重写。 Seat: `repo:objectstack#4 · os-project-manager · session_01FEkQ5kDGa1ViantgrfH797`, area a4-I. Card 35846 was folded into this dispatch and is **left out of this PR on purpose**: see Acceptance notes. ## Read first 1. `packages/spec/src/migrations/entries/semantic/18.field-group-related-list-side-card-refused.ts`: the riskiest hunk is the `reason` parenthetical and the "Ruling B keeps the FK's declared relatedList authoritative" sentence. Check them against `isGroupPlaceableRelationship` / `fieldGroupBodyTableRefusal` in `packages/spec/src/data/related-list-body-table.ts`. 2. `packages/spec/src/migrations/entries/semantic/18.page-slots-tabs-retired.ts`: the `replacement` tail now reads like `PAGE_SLOTS_TABS_REMEDY` in `packages/spec/src/ui/page.zod.ts`. 3. `packages/spec/liveness/object.json`: one dated sentence was added to the `fieldGroups[].relatedList` note. Two-minute check: `pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/ui/page-slots-tabs-retirement.test.ts src/migrations/migrations.test.ts`. Both files should pass. The D3 pin still finds `` `kind: 'full'` `` and no tracker number in any field shown to authors. ## What changes - **`field-group-related-list-side-card-refused`** (card 35701). Since the body-table predicate was widened, a field group may place a `master_detail` FK that declares no `relatedList`, with or without `inlineEdit`, and the group makes it a body table. `isGroupPlaceableRelationship` accepts this shape, and so do the `defineStack` and publish-door refusals. The entry still listed it as refused. Changes: - `surface`: the shape "a plain master_detail with no inlineEdit" is removed from the refused list. - `replacement`: "for an inline-edited master_detail remove an explicit `relatedList: true`" becomes "for a master_detail …". - `reason`: the old predicate in the parenthetical is replaced by the merged one. The text matches the refusal sentence: "`relatedList: 'primary'`, or a master_detail FK that declares no relatedList, which the group makes a body table". - The entry's header comment is corrected the same way. - The `id`, `acceptanceCriteria` and every predicate are unchanged. - **`page-slots-tabs-retired`** (card 36211). The `replacement` tail and the `acceptanceCriteria` now say a `kind: 'full'` page is drawn as authored on the desktop full record page, and that a phone and the side preview draw the standard record page with the composed strip. This matches the remedy and describe as merged in `92e0475e`. The pin file's docblock line says the same. - **Stale notes from 35701, comment only:** - `packages/spec/liveness/field.json`: the `relatedList` evidence now says "absent on a master_detail FK that a parent field group places". - `packages/spec/liveness/object.json`: the `fieldGroups[].relatedList` note gains one dated sentence about the widened placeable set. Verdict unchanged: LIVE. - **Checklist quote (scope addition 7027500679):** in `docs/qa/platform-checklist/areas/records-forms.json`, item `records-forms.related-list-server-pagination` steps[1] quotes the `relatedList` describe. The quote now matches the describe as it stands on `main`. This is the only edit in that file. No other item and no revision changes: it is a correction to a quote, and what the step asks the grader to do is unchanged. - Changeset `.changeset/35701-shipped-text-after-body-tables.md`: `@objectstack/spec` minor. The kind is `semantic`, and per AGENTS.md step 3 a kind other than `none` takes at least minor. PR `92e0475e` used the same level for its describe-only change. `os migrate meta` lists the same entries for the same stacks. `relevantWhen` is keyed on top-level stack keys and is untouched, and the edit is in place: no new entry and no superseding entry. ## Tests <details><summary>Spec unit tests and gates (filled from the local run, see Verification)</summary> At head `483e6f51f` (all under `scripts/pm/os-verify-lock.sh`, VERDICT command-exit 0 each): - `pnpm --filter @objectstack/spec test`: Test Files 869 passed (869), Tests 27877 passed, 1 todo. This includes `src/ui/page-slots-tabs-retirement.test.ts` (the D3 entry pin) and `src/migrations/*.test.ts`. - `pnpm --filter @objectstack/spec typecheck`: exit 0; `registry.ts is current (638 semantic, 307 retired-key, 249 retired-def)`. - `pnpm --filter @objectstack/cli exec vitest run --maxWorkers=2 test/migrate-meta-engine-guidance.test.ts` (the os migrate meta guidance pin), after building the cli closure: Test Files 1 passed, Tests 3 passed. - No ablation: no tested behaviour changed (text only). </details> ## Acceptance notes - **Card 35846 not done (its premise was overtaken).** Its Done-when asks the item to cite "the 2026-11-20 ADR-0035 note". That note was PR 35845, which was closed unmerged by maintainer ruling on 2026-11-20 22:08Z: 「35845 和新规则冲突,直接关闭作废」. The ADR on `main` has no such note. Separately, `f3c9d426f` (2026-11-21) made a plain `master_detail` child a tab by default. It is a body table only where a parent field group places it, and it is then drawn at that group's position. The item `records-forms.master-detail-body-tables` assumes the old default throughout: **Resolved 2026-11-22:** the seat closed objectstack-ai#35846 as superseded by objectstack-ai#36188; PR objectstack-ai#36284 rewrites the item to the objectstack-ai#35921 rule (no citation of PR 35845). - its title says "a table in the record overview by default … never a tab"; - its fixture is `showcase_task.project`, which no `showcase_project` field group names; - clause [2] and the negatives say the list has no tab; - its rule cells read "no relatedList → body". Writing only the new order would leave the item false, so this PR makes no edit to it. The next step is in the report's `open_questions`. - **Scope addition, quote target.** The addition asked for the describe "as merged by objectstack-ai#35691". `f3c9d426f` has since replaced that describe: its "absent = 'primary' on a master_detail field" no longer holds. The quote therefore uses the describe on `main` at `c30ce97c`. Quoting the older text would have added a false statement. - **35701's stale-note list, measured at `c30ce97c`:** - Already current, no edit made (refreshed by the objectstack-ai#35889 / objectstack-ai#35921 work): ObjectFieldInspector (`readRelatedListMode` docblock, now at about line 3058) and the ObjectGroupInspector `RelatedTablePlacement` docblock. The `lint data-model-rules` notes at :292 and :1012 already cite the group rule. - Skipped by order: RecordDetailView (seat 1 is editing it). - Left alone, under `ui/` and outside this claim: `ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts:306` "drawn as authored" (docblock). - **Not touched, by rule:** `packages/lint/CHANGELOG.md` near line 2317 still states the old remedy in a released entry. Package changelogs are release-owned. Correcting a released entry takes its own docs-only PR. - **Remaining wording drift, out of scope:** `field-group-related-list-side-card-refused` still says "side card in the related column". Since the tab row work, a non-body list is a tab with a rail card. The card asked only for the predicate. ## Verification Gate families derived by `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` at `483e6f51f`: 92 commands, all run under the lock; `--ran` reconciliation: 92 derived, 92 run, 0 UNRUN. - 87 exited 0 on the first pass, among them `check:spec-changes`, `check:upgrade-guide`, `check:docs` (249 generated files in sync), `check:liveness`, `check:platform-checklist` (16 areas, 436 items OK), `check:doc-authoring`, `check:nul-bytes`, `check:issue-citations`, `check:adr-0087-registration`. - 3 answered PREREQUISITE NOT MET (exit 3 or 1, an unbuilt package) and exited 0 after `pnpm --workspace-concurrency=2 --filter '@objectstack/cli...' build`: `migrate-meta-engine-guidance.test.ts`, `check:doc-formula-expressions`, `check:lean-entry-closure`. - NOT MEASURED: `check:dual-build-cjs-loads`, which needs a full workspace build (105 packages without dist). CI's Lint & Repo Gates runs it. - NOT MEASURED: `check-plugin-teardown-shape.mjs --self-test`, whose positive control is pinned to a commit this shallow clone cannot reach. It is checker health only and cannot judge this diff. - `generated references`: `content/docs/references/**` embeds neither entry (`git grep` finds both ids only in release notes), so nothing was regenerated. The upgrade guide and spec-changes are gitignored projections, checked in memory above. - Overlap: `node scripts/pm/overlap-check.mjs`: VERDICT clean (PRs 36233 and 36223 share `records-forms.json` and merge cleanly). --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5kDGa1ViantgrfH797)_ <!-- signed: repo:objectstack#4 · os-project-manager · session_01FEkQ5kDGa1ViantgrfH797 --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…nlines the child (objectstack-ai#36307) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XC63go34oEMBFaBgqpoDC8N)_ Fixes objectstack-ai#36281 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:作者给「组合/重复」字段声明了子字段时,检查工具打印的修复建议以前说「建子对象并设成表格内联编辑」就能在父表单里编辑明细;现在改成「建子对象,并在父对象的字段分组里点名它」,同时说明内联方式只决定怎么编辑行。 - 为什么做:属于「检查工具的建议要和平台真实规则一致」这条线,替照着建议改元数据的作者和 AI 解决「照做之后父表单里没有明细行、子对象只是一个标签页」的问题。 - 出错会怎样:只改一句提示文字和两处测试,规则何时触发、级别和位置都不变;写错的话作者看到的仍是一句不准的建议,直接回退这个 PR 即可。 - 要你做什么:无。 ## What changes State at head `bc156e739` (one commit). - `packages/lint/src/data-model-rules.ts`: the `field/embedded-sub-fields` fix line. It said the child object plus "`inlineEdit: 'grid'` edits it inline". Since the parent-field-group rule (objectstack-ai#35889, with objectstack-ai#35921), a child is inlined in the parent's form only when a field group of the parent names it in `relatedList`; the FK's `inlineEdit` only picks grid or form. The line now reads: "Make the typed list a child object whose `master_detail` field points back here, name it in a `fieldGroups[].relatedList` here (`inlineEdit` only picks how rows are edited), and remove the key." (193 characters, under the 200 cap.) This follows the spec text `EMBEDDED_JSON_TYPED_LIST` and the rule's `os explain` paragraph, which already name the field group. - Message text only: the rule id, severity, path and when it fires are unchanged. - `packages/lint/src/data-model-rules.fix-lines.test.ts`: the exact-text pin of this fix line is updated to the new text (it asserts the hint text, nothing else). - `packages/lint/src/data-model-rules.embedded-sub-fields.test.ts`: new top-level `describe` in the rule's existing harness file: the fix names `master_detail`, `fieldGroups[].relatedList` and "`inlineEdit` only picks how rows are edited", and no longer carries `inlineEdit: 'grid'`. - `.changeset/36281-embedded-sub-fields-hint.md`: `@objectstack/lint` patch. Read first: `packages/lint/src/data-model-rules.ts` (the one changed string, R14), then the new `describe` at the end of `data-model-rules.embedded-sub-fields.test.ts`. Two-minute check: `pnpm --filter @objectstack/lint exec vitest run src/data-model-rules.embedded-sub-fields.test.ts src/data-model-rules.fix-lines.test.ts` shows 2 files, 26 tests passed. ## Tests All readings at head `bc156e739`. <details><summary>Targeted tests, typecheck, whole lint package</summary> - `pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2 src/data-model-rules.embedded-sub-fields.test.ts src/data-model-rules.fix-lines.test.ts`: Test Files 2 passed (2), Tests 26 passed (26). - `pnpm --filter @objectstack/lint typecheck`: exit 0 (tsc --noEmit, then check:test-typecheck OK). - `pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2`: Test Files 224 passed (224), Tests 9409 passed, 5 skipped (9414). </details> <details><summary>Ablation (one-time, not kept)</summary> `node scripts/ablation-replace.mjs` swapped the new second half of the fix back to "`inlineEdit: 'grid'` edits it inline": anchor 1 to 0, blob f16e42d to 1f785d0f961a. Both pins went red: "routes to `fieldGroups[].relatedList` and gives `inlineEdit` only the form factor" and "field/embedded-sub-fields: one line, whatever the type, the keys or the names" (2 failed, 24 passed). Restored: blob equals HEAD (f16e42d), `git diff HEAD` empty. Vitest reads `src/` through the relative import, so no rebuild was needed. </details> <details><summary>Gates run locally</summary> `node scripts/pm/dispatch-gates.mjs --commands` derived 63 commands for this diff. 61 exit 0 (`check:docs-transcript-drift` and `check:lean-entry-closure` after building lint and objectql; first run exit 3, prerequisite). 2 NOT MEASURED, exit 3 prerequisite: `check:dual-build-cjs-loads` (needs a full `pnpm build`; CI runs it) and `check-plugin-teardown-shape.mjs --self-test` (checker health only; needs an unshallowed clone). `--ran` reconciliation: 63 derived, 61 run, 2 NOT-MEASURED, 0 UNRUN, exit 0. </details> ## Acceptance notes - Other `inlineEdit` hits in `packages/lint/src` (non-test), left as they are: `data-model-rules.ts` doc comments near the bulk rule, the group map and R5 already say the field group, not `inlineEdit`, inlines the child; `validate-field-consumers.ts` reads `inlineEdit` only as the form factor (grid or form); `showcase-shape.fixtures.ts` sets `inlineEdit: true` on a list view, a different key. - Outside `packages/lint`, `content/docs/data-modeling/field-types.mdx` says "`inlineEdit: 'grid'` edits the rows as an inline grid on the parent's form (where a field group of the parent names the child)". It states the group condition, so it is not wrong, only ordered the old way. Not changed here (not on this card's file surface). - The pin went into the rule's existing harness file as a top-level `describe`, not a new card-named file (AGENTS.md: a new pin for a component with a shared harness goes into that file). ## Verification Local only; CI runs the full farm. Net added lines: +28 / -4 (net +24) against merge base 76cb366. --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5kDGa1ViantgrfH797)_ Co-authored-by: Claude <noreply@anthropic.com>
Requested by Sales · project thread
repo:objectstack#1 · os-sales · session_01L6bhgTZaMP6gPV6DVStBSU
Part of #35889
Flow: dev-thread rule (maintainer 2026-11-20 09:22:50Z 「所有 p1 都按照新规则执行」): the card thread builds itself; L1 and the isolated L2 run in parallel at hand-back, the maintainer's 09:22Z ruling for every p1 card (deviates from contract-review.md:18 until the skill card lands).
ADR text drafted at opus under the measured quota exemption (the Fable quota was spent while it was written); the Fable L2 reviews it.
维护者速读
fieldGroups: [{ key: 'lines', relatedList: 'order_line' }])。这张表就出现在那个分组的位置,新建和编辑表单里也有它,点「编辑」时主记录和明细行一起改、一次保存(记录页编辑:主记录的字段和主从子表的行一起进入编辑状态,一次保存、同一个事务 #35599 的功能保留)。页签里照常还有它。inlineEdit不再单独决定子表进不进表单,只决定进了以后用表格还是表单的样子。relatedList: 'primary'不变:显式写了的子表照旧进概览,不需要分组。showcase_invoice)、报销单(showcase_expense_report)、CRM 的商机(crm_opportunity,「Products」明细)。HotCRM 的项目预算明细见 feat(psa): a project budget names its lines in a field group, so they stay in its form and record page hotcrm#2721,其他对象见 HotCRM:商机等手写记录页回到平台默认页结构;审批提示文案改正;为主从明细对象打开一起保存 hotcrm#2720。Fixes #35889)会让表单(简单、分页签、向导三种布局)把子表放到分组的位置。What changes
A
master_detailFK that declares norelatedListis now a tab of the parent's record page, with its count, like any other related list,inlineEditor not. It becomes a body table only where a field group of the PARENT names it (fieldGroups[].relatedList, a child object name orobject.field).packages/spec/src/data/related-list-body-table.ts):isGroupPlaceableRelationship(field)is the set a field group may name (unchanged:'primary', or amaster_detailwith norelatedList).isBodyTableRelationship(field, { placedByGroup })is still the one body-table judgement.fieldGroupsPlaceRelationship(fieldGroups, child, field)reads whether a parent group names the list.fieldGroupBodyTableRefusalfilters with the placeable test, so its accept set is unchanged. Field, object and form describes rewritten to say this.semantic/18.master-detail-related-list-tab-by-defaultwith the in-repo census, and an ADR-0035 amendment (status line plus a third note under the read-side table).deriveRelatedListsreads the parent's field groups forisPrimaryand addsisPlaceable. A plainmaster_detailtable a group makes a body table keeps its tab too (card item 4,keepsTabfromderiveRelatedLists); arelatedList: 'primary'table stays body-only, as before, whether or not a group positions it. The edit state (记录页编辑:主记录的字段和主从子表的行一起进入编辑状态,一次保存、同一个事务 #35599) follows the body tables, so it covers exactly the group-placed ones.attachInlineSubformsinlines a child only where a parent field group places it, a'primary'child included (ruling B: a'primary'child a group names now joins the parent's forms; one no group names leaves them, even withinlineEdit).inlineEditonly picks the form factor ('grid','form', or the shape-picked default). The table still sits below the record's fields in the entry form.object.form.ts, en and zh-CN bundles): no longer says the record page does not draw the placement.isPlaceable); the relationship inspector reads a plainmaster_detailFK as "Show", and "Show" leaves the key absent so a group can still place it.relationship/line-items-inline-editsuggests a parent field group instead ofinlineEdit: true;relationship/association-inline-editandrelationship/inline-edit-needs-bulkjudge the children a parent group places; the field-consumer rule credits a child's inline grid columns only when a parent group places it.data-modeling/fields.mdx,data-modeling/field-types.mdxandgetting-started/common-patterns.mdxsaidinlineEditalone puts the child rows on the parent's form; they now say the parent's field group decides (with the group snippet), and the order example names its lines in a group. Flagged by the docs-drift check.The split (agreed with the seat)
Part of #35889): spec rule, migration entry, ADR amendment, record page, Studio, group-named children entering the create and edit forms (below the master fields for now), and saving together from Edit.Fixes #35889): ObjectForm slot sections for the simple, tabbed and wizard layouts, so a placed table moves to its group's place in the form. No S2 form change is in this PR.What S1 leaves (follow-ups)
inlineEdit: truenow means the same as absent; retiring it is RetireinlineEdit: trueon master-detail relationships: after #35889 a parent field group decides, so the key means the same as absent #35926.metadata-formstranslations still carry the oldinlineEdithelp text: Non-English metadata-forms translations still carry the oldinlineEdithelp text after #35889 #35927.skills/objectstack-ui/evals/record-page.jsonand related text: master-detail children are a body table by default). Left for 技能、文档、示例和 HotCRM 用上记录页的新写法:relatedLists 列页签、分组列字段、分组指向子表、扩展包声明位置 #35902; this card says not to touch skills (the 技能、文档和示例补上「分组指向子表」的写法(fieldGroups[].relatedList):现在只有参考表里一行,没人知道能用 #35852 topic).Why
Maintainer on #35889: 「主从子表我认为不应该自动申明放在概览中,除非我通过 fieldGroup 强制指定」 and 「我们已经开发好的功能也没必要作废」; ruling B on the same card (2026-11-20 17:34Z, 「明细表应该改成指看分组的定义了」): only the group definition decides,
inlineEditonly picks grid or form.Verification
@objectstack/spectests green;pnpm --filter @objectstack/spec check:generated14/14 (api-surface, export-origins, reference docs regenerated).@objectstack/lint: 9351 tests green.packages/cli/test/data-model-rules.test.ts: 65 green.ui/: plugin-detail and the record page harness (395 files, 3671 tests) green; the directly affected app-shell files (deriveRelatedLists*,MetadataProvider.merge,composedObjectsIdentity-11699, the field inspector) green; the whole app-shell suite (2351 files) was too slow to finish locally beside the builds and was stopped, so CI's Test UI shards are the measurement for it.inlineEditor not; a group-placed one is a body table that keeps its tab;true/falseunchanged), the edit state (记录页编辑:主记录的字段和主从子表的行一起进入编辑状态,一次保存、同一个事务 #35599) on a group-placed page,buildDefaultTabskeeping a placed table's tab,attachInlineSubformsinlining only group-placed children, and the lint rules on placed and unplaced children.ui/), the expense reportEXP-DEMO:Expense Lines 4, and the create form inlines the lines grid. At 375 px the table draws as cards at the same place and the tab stays on the row.Expense Lines 4is a tab and a rail card, and the create form has no lines grid. This is the card's first acceptance line.recordEditState-35599), not driven in the browser: the seeded report is locked by its pending approval.Clause-②: yes (widening:
@objectstack/spec/dataexportsisGroupPlaceableRelationship,fieldGroupsPlaceRelationshipand theBodyTableContexttype, andisBodyTableRelationshiptakes an optional second argument)Metadata-protocol: semantic
Skills-docs: follow-up #35902
Human Minimum
packages/specholds no runtime logic.pnpm lintpasses.main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgTZaMP6gPV6DVStBSU